If the 'cdrom=' option is specified in the definition file but media is
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Mon, 10 Apr 2006 16:16:25 +0000 (17:16 +0100)
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Mon, 10 Apr 2006 16:16:25 +0000 (17:16 +0100)
commit73004d34e4efc04bf0fc798615202361b39dd9a8
tree36ff0f3335153b335999ecd5ee177345bba64297
parentb5fa90ac8ea579eb2b4223051e3c35d78a7b28b2
If the 'cdrom=' option is specified in the definition file but media is
not found in the CD drive then main() in vl.c exits and the guest appears
to hang.  This patch modifies vl.c slightly to check for the presents of
media.  If the cdrom cannot be opened then the cd entry is removed from
hd_filename[] and bs_table[] allowing the guest to continue initializing.
If the guest requires the CD media then the guest should report, gracefully
or otherwise, that it's missing.

From: Ross Maxfield <rmaxfiel@novell.com>

Signed-off-by: Keir Fraser <keir@xensource.com>
tools/ioemu/vl.c